<{extends file="$tpl_dir/tpl_base.htm"}>
<{block name="main"}>
<{$passed_confirm = [
	'title' => '确定审核通过选择的信息？',
	'desc' => '确定审核后，同时会给家长发送短信'
]}>
<div class="main-head">
  <div class="main-head_title">
    <h2>报名记录</h2>
  </div>
  <div class="main-head_nav">
  	<a href="<{$url.base}>/" <{if !isset($gets.status) || $gets.status === ''}> class="active"<{/if}>>全部记录</a>
	<a href="<{$url.base}>/?status=0" <{if $gets.status === '0'}> class="active"<{/if}>>待审核</a>
	<a href="<{$url.base}>/?status=1" <{if $gets.status === '1'}> class="active"<{/if}>>已审核</a>
  </div>
</div>
<div class="main-body">
  <div class="main-action">
    <a href="javascript:;" data-action="passed" data-confirm="<{$passed_confirm|json_encode|escape}>" class="mod-btn j-action">审核通过</a>
    <a href="<{$url.base}>/export" class="mod-btn">全部导出</a>
    <div class="main-search">
      <form method="get">
	    <input type="hidden" name="status" value="<{$gets.status}>">
        <input type="text" name="keyword" class="mod-inpt" placeholder="学生姓名关键字或联系电话" value="<{$gets.keyword}>">
        <input type="submit" class="mod-btn mod-btn_primary" value="搜索">
      </form>
    </div>
  </div>
  <div class="mod-box">
    <table cellspacing="0" cellpadding="0" class="mod-table">
      <thead>
        <tr>
          <th class="col-chkbox"><label class="mod-chkbox">
            <input type="checkbox" data-action="chkall">
            </label></th>
          <th>学生姓名</th>
          <th>性别</th>
          <th>身份证号</th>
          <th>联系人</th>
          <th>联系电话</th>
          <th>与学生关系</th>
          <th>报名时间</th>
          <th>报名学校</th>
          <th>报名年级</th>
          <th>报名校区</th>
          <th>状态</th>
          <th class="col-operate">操作</th>
        </tr>
      </thead>
      <tbody>
      <{foreach $list as $row}>
      <tr>
        <td class="col-chkbox"><label class="mod-chkbox">
          <input type="checkbox" name="chkid[]" value="<{$row.id}>" <{if $row.status}>disabled<{/if}>>
          </label></td>
        <td><{$row.student_name}></td>
        <td><{$options.sex[$row.student_sex]}></td>
        <td><{$row.student_idno}></td>
        <td><{$row.parent_name}></td>
        <td><{$row.parent_phone}></td>
        <td><{$row.parent_clan}></td>
        <td><{$row.inputtime|date_format:"%Y-%m-%d %H:%M:%S"}></td>
        <td><{$row.school}></td>
        <td><{$row.grade}></td>
        <td><{$row.campus}></td>
        <td><{if !$row.status}><font color="#e43"><{$options.status[$row.status]}></font><{else}><{$options.status[$row.status]}><{/if}></td>
        <td class="col-operate"><a href="<{$url.base}>/detail?id=<{$row.id}>">详情</a></td>
      </tr>
      <{/foreach}>
      </tbody>
    </table>
    <{if !$list}>
    <div class="mod-nothing">暂无信息</div>
    <{/if}> </div>
  <{if $list}>
  <div class="pagination"><{$show_page}></div>
  <{/if}> </div>
<{/block}>
<{block name="foot" append}>
<script type="text/javascript">
(function(){
	
})();
</script>
<{/block}>